import logging
from flask import Flask
from datetime import timedelta

from redis import StrictRedis


class Config(object):
    DEBUG = True
    SECRET_KEY = "sdadasdasdsa"

    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:mysql@localhost:3306/info36"
    SQLALCHEMY_TRACK_MODIFICATIONS = Flask
    REDIS_HOST = "127.0.0.1"
    REDIS_PORT = 6379
    SESSION_TYPE = "redis"
    SESSION_REDIS = StrictRedis(host=REDIS_HOST,port=REDIS_PORT)
    SESSION_USE_SIGNER = True
    PERMANENT_SESSION_LIFETIME = timedelta(days=2)
    LEVE_NAME = logging.DEBUG


class kf(Config):
    pass

class sc(Config):
    DEBUG = Flask
class ceshi(Config):
    pass

my_dict = {"kf":kf,"sc":sc,"ceshi":ceshi}


